#include <iostream>

#include "Array2D.h"
using namespace std;

Array2D a(3, 4);
Array2D b(3, 2);

void PrintA() {
    for (int i = 0; i < 3; ++i) {
        for (int j = 0; j < 4; ++j) {
            cout << a.row(i)[j] << ",";
        }
        cout << endl;
    }
}
void PrintB() {
    for (int i = 0; i < 3; ++i) {
        for (int j = 0; j < 2; ++j) {
            cout << b.row(i)[j] << ",";
        }
        cout << endl;
    }
}

int main() {
    int No = 0;
    for (int i = 0; i < 3; ++i) {
        a.row(i);
        for (int j = 0; j < 4; ++j) {
            a.row(i)[j] = No++;
        }
    }
    PrintA();

    for (int i = 0; i < 3; ++i)
        for (int j = 0; j < 2; ++j)
            b.row(i)[j] = (float)10.0 / (i + j + 1);
    PrintB();
    int n = (int)a.row(0)[1];
    float f = b.row(0)[1];
    cout << "****" << endl;
    cout << n << "," << f << endl;

    return 0;
}
